home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / share / man / cat3 / XmStringDrawImage.z / XmStringDrawImage
Encoding:
Text File  |  2003-11-18  |  5.0 KB  |  133 lines

  1.  
  2.  
  3.  
  4.      XXXXmmmmSSSSttttrrrriiiinnnnggggDDDDrrrraaaawwwwIIIImmmmaaaaggggeeee((((3333XXXX))))     UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV     XXXXmmmmSSSSttttrrrriiiinnnnggggDDDDrrrraaaawwwwIIIImmmmaaaaggggeeee((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       _X_m_S_t_r_i_n_g_D_r_a_w_I_m_a_g_e - A    compound string    function that draws a
  10.       compound string in an    X Window and creates an    image
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.       #include <Xm/Xm.h>
  14.  
  15.       void XmStringDrawImage (dddd,,,, wwww,,,,    ffffoooonnnnttttlllliiiisssstttt,,,, ssssttttrrrriiiinnnngggg,,,, ggggcccc,,,, xxxx,,,, yyyy,,,, wwwwiiiiddddtttthhhh,,,, aaaalllliiiiggggnnnnmmmmeeeennnntttt,,,,
  16.             llllaaaayyyyoooouuuutttt____ddddiiiirrrreeeeccccttttiiiioooonnnn,,,, cccclllliiiipppp)
  17.            _D_i_s_p_l_a_y     **** dddd;
  18.            _W_i_n_d_o_w     wwww;
  19.            _X_m_F_o_n_t_L_i_s_tffffoooonnnnttttlllliiiisssstttt;
  20.            _X_m_S_t_r_i_n_g     ssssttttrrrriiiinnnngggg;
  21.            _G_C     ggggcccc;
  22.            _P_o_s_i_t_i_o_n     xxxx;
  23.            _P_o_s_i_t_i_o_n     yyyy;
  24.            _D_i_m_e_n_s_i_o_n wwwwiiiiddddtttthhhh;
  25.            _u_n_s_i_g_n_e_d    _c_h_a_raaaalllliiiiggggnnnnmmmmeeeennnntttt;
  26.            _u_n_s_i_g_n_e_d    _c_h_a_rllllaaaayyyyoooouuuutttt____ddddiiiirrrreeeeccccttttiiiioooonnnn;
  27.            _X_R_e_c_t_a_n_g_l_e**** cccclllliiiipppp;
  28.  
  29.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  30.       _X_m_S_t_r_i_n_g_D_r_a_w_I_m_a_g_e draws a compound string in an X Window and
  31.       paints both the foreground and background bits of each
  32.       character.  If a compound string segment uses    a font list
  33.       entry    that defines a font set, the graphic context passed to
  34.       this routine will have the GC    font member left in an
  35.       undefined state.  The    underlying _X_m_b_S_t_r_i_n_g_D_r_a_w function
  36.       called by this routine modifies the font id field of the GC
  37.       passed into it and does not attempt to restore the font id
  38.       to the incoming value.  If the compound string segment is
  39.       not drawn using a font set, the graphic context must contain
  40.       a valid font member.    Graphic    contexts created by _X_t_G_e_t_G_C
  41.       are not accepted by this routine; instead, use _X_t_A_l_l_o_c_a_t_e_G_C
  42.       to create a graphic context.
  43.  
  44.       dddd    Specifies the display.
  45.  
  46.       wwww    Specifies the window.
  47.  
  48.       ffffoooonnnnttttlllliiiisssstttt
  49.            Specifies the font list.
  50.  
  51.       ssssttttrrrriiiinnnngggg
  52.            Specifies the string.
  53.  
  54.       ggggcccc   Specifies the graphics context to use.
  55.  
  56.       xxxx    Specifies a coordinate of the rectangle that will
  57.            contain the displayed compound string.
  58.  
  59.       yyyy    Specifies a coordinate of the rectangle that will
  60.  
  61.  
  62.  
  63.      Page 1                        (printed 11/11/03)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXmmmmSSSSttttrrrriiiinnnnggggDDDDrrrraaaawwwwIIIImmmmaaaaggggeeee((((3333XXXX))))     UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV     XXXXmmmmSSSSttttrrrriiiinnnnggggDDDDrrrraaaawwwwIIIImmmmaaaaggggeeee((((3333XXXX))))
  71.  
  72.  
  73.  
  74.            contain the displayed compound string.
  75.  
  76.       wwwwiiiiddddtttthhhh
  77.            Specifies the width of the rectangle that will contain
  78.            the displayed compound string.
  79.  
  80.       aaaalllliiiiggggnnnnmmmmeeeennnntttt
  81.            Specifies how the string    will be    aligned    within the
  82.            specified rectangle.  It    is either
  83.            _X_m_A_L_I_G_N_M_E_N_T__B_E_G_I_N_N_I_N_G, _X_m_A_L_I_G_N_M_E_N_T__C_E_N_T_E_R, or
  84.            _X_m_A_L_I_G_N_M_E_N_T__E_N_D.
  85.  
  86.       llllaaaayyyyoooouuuutttt____ddddiiiirrrreeeeccccttttiiiioooonnnn
  87.            Controls    the direction in which the segments of the
  88.            compound    string will be laid out.  It also determines
  89.            the meaning of the aaaalllliiiiggggnnnnmmmmeeeennnntttt parameter.
  90.  
  91.       cccclllliiiipppp Allows the application to restrict the area into    which
  92.            the compound string will    be drawn.  If NULL, no
  93.            clipping    will be    done.
  94.  
  95.      RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
  96.       _X_m_S_t_r_i_n_g_C_r_e_a_t_e(_3_X).
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                        (printed 11/11/03)
  130.  
  131.  
  132.  
  133.